package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import javax.print.DocFlavor;
import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@Document("prop_comment")
public class PropComment implements Serializable {

    @Id
    private String id;

    private Long userId;//用户id

    private String userImg; //用户头像

    private String userName; //用户名

    private String content; //评论内容

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime; //评论时间
}
